package com.oba.king.datalib.sampleproduct;

/**
 * Title:           SampleProductDetail
 * Description:
 * Copyright:       Copyright (c) 2003
 * Company:         King Top Limited
 * @author          Wu Liang
 * @version 1.0
 *
 * MODIFICATION HISTORY
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * Date Modified        Modified By         Comments
 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * 26/04/2010           Wu Liang            Code Creation
 */

import com.oba.base.service.BaseBo;
import com.oba.king.datalib.productinfo.ProductInfo;
 
public class SampleProductDetail extends BaseBo {

	private Long sampleProductId;
	private String productCode;
	private String productName;
	private Long maxAmount;
	private Double sampleProductPrice;
	private String remark;
	private String inActive = "Y";
	private String inActiveTy;
	
	private ProductInfo productInfo;

	public ProductInfo getProductInfo() {
		return productInfo;
	}

	public void setProductInfo(ProductInfo productInfo) {
		this.productInfo = productInfo;
	}

	public Long getId() {
		return sampleProductId;
	}

	public String getName() {
		// TODO Auto-generated method stub
		return productCode;
	}
	public Long getSampleProductId() {
		return sampleProductId;
	}

	public void setSampleProductId(Long sampleProductId) {
		this.sampleProductId = sampleProductId;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public Long getMaxAmount() {
		return maxAmount;
	}

	public void setMaxAmount(Long maxAmount) {
		this.maxAmount = maxAmount;
	}

	public Double getSampleProductPrice() {
		return sampleProductPrice;
	}

	public void setSampleProductPrice(Double sampleProductPrice) {
		this.sampleProductPrice = sampleProductPrice;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getInActive() {
		return inActive;
	}

	public void setInActive(String inActive) {
		this.inActive = inActive;
	}

	public String getInActiveTy() {
		if(inActive!=null && !inActive.equals("")){
			if(inActive.equals("Y")){
				return "有效";
			}else if(inActive.equals("N")){
				return "无效";
			}
		}
		return "";
	}

	public void setInActiveTy(String inActiveTy) {
		this.inActiveTy = inActiveTy;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

}
